Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Explicitly set row and column start and end in Overlap CSS #1776

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

alimpens
Copy link
Contributor

@alimpens alimpens commented Dec 6, 2024

Describe the pull request

Thank you for contributing to the project!
Please use this template to help us handle your PR smoothly.

What

The Overlap CSS currently uses grid-area: 1 / -1. This is a shorthand for grid-row-start: 1 grid-column-start: -1.
This PR changes that to grid-row/grid-column 1 / -1.

Why

I don't think grid-row-start: 1 grid-column-start: -1 says what we want to say. We want all Overlap children to start on the first row / column and end on the last row / column.

Functionally it doesn't matter, because there usually only is 1 row and 1 column. A user could put a Grid.Cell or something in Overlap though, which would create more rows / columns.

How

By changing the CSS.

Checklist

Before submitting your pull request, please ensure you have done the following. Check each checkmark if you have done so or if it wasn't necessary:

  • Add or update unit tests
  • Add or update documentation
  • Add or update stories
  • Add or update exports in index.* files
  • Start the PR title with a Conventional Commit prefix, as explained here.

@github-actions github-actions bot temporarily deployed to demo-change-overlap-css December 6, 2024 16:02 Destroyed
@alimpens alimpens changed the title fix: Set Overlap CSS to row 1, column 1 fix: Explicitly set row and column start and end in Overlap CSS Dec 6, 2024
@VincentSmedinga VincentSmedinga merged commit efd2b99 into develop Dec 6, 2024
8 checks passed
@VincentSmedinga VincentSmedinga deleted the task/change-overlap-css branch December 6, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants